package com.bbs.Propreties;

import org.springframework.boot.context.properties.ConfigurationProperties;
import org.springframework.stereotype.Component;

import java.util.HashMap;
import java.util.Map;
@Component
@ConfigurationProperties(prefix = "coupon")
public class CouponProperties {
    private Map<String,Double> properties;
    public Map<String, Double> getProperties() {
        return properties;
    }
    public void setProperties(Map<String, Double> properties) {
        this.properties = properties;
    }

    public String GetRandomReword(){
        //获取随机奖励
        //返回
        return null;
    }
}
